package net.asfun.jvalog.util;

import java.util.List;

import net.asfun.jvalog.service.ArchiveService;
import net.asfun.jvalog.service.CategoryService;
import net.asfun.jvalog.service.CommentService;
import net.asfun.jvalog.service.PostService;
import net.asfun.jvalog.service.SiteService;
import net.asfun.jvalog.vo.Setting;

public class AutoLoader {
	
	public static List<?> getCategories() {
		return CategoryService.listAll();
	}
	
	public static List<?> getComments() {
		return CommentService.listRecent(Setting.SIZE_RECENT_COMM);
	}
	
	public static List<?> getLinks() {
		return SiteService.getFriendLink();
	}
	
	public static List<?> getPosts() {
		return PostService.listRecent(Setting.SIZE_RECENT_POST);
	}
	
	public static List<?> getArchives() {
		return ArchiveService.listYearMonth();
	}
	
}
